import request from '@/utils/request'
export function loadVs(ns,name) {
  return request({
    url: '/virtualservices/' + ns+'/'+name,
    method: 'get',
  })
}
export function updateVS(data) {
  return request({
    url: '/virtualservices?update=1',
    data,
    method: 'post',
  })
}
export function deleteVS(ns,name) {
  return request({
    url: '/virtualservices?ns=' + ns+'&name='+name,
    method: 'delete',
  })
}
export function createVS(data) {
  return request({
    url: '/virtualservices',
    data,
    method: 'post',
  })
}
export function getVsList(ns) {
  return request({
    url: '/virtualservices?ns=' + ns,
    method: 'get',

  })
}

